package com.neulogistics.contrib.procuredcenter.api.application.integrationevent.publish;

import com.blackto.lib.eventbus.event.IntegrationEvent;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.PurchaseItem;
import lombok.Setter;

@Setter
public class GoodsCreatedIntegrationEvent extends IntegrationEvent {
    /**
     * 商品id
     */
    public Integer goodsId;

    /**
     * 商品名
     */
    public String goodsName;

    /**
     * 计量单位
     */
    public String measureUnit;

    public GoodsCreatedIntegrationEvent(Long eventId) {
        super(eventId);
    }

    public GoodsCreatedIntegrationEvent(Long eventId, Integer goodsId, String goodsName, String measureUnit) {
        super(eventId);
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.measureUnit = measureUnit;
    }
}
